* Encoding: UTF-8.

***figures in the main text.

*use data set brawl 2017 panel. 
*Main text, Figure 1.

USE ALL.
COMPUTE filter_$=(ipq1 ne 9999).
FILTER BY filter_$.
EXECUTE.
compute partisan=0. 
if (q27-q28 ge 1) partisan=2.
if (q27-q28 ge 4) partisan=1.
if (q27=q28) partisan=3.
if (q28-q27 ge 1) partisan=4.
if (q28-q27 ge 4) partisan=5.
value labels partisan 1 "KMT much better" 2 "KMT slightly better" 
    3 "KMT and DPP equal" 4 "DPP slightly better" 5 "DPP much better".
compute kbrawler1=0.
compute kbrawler2=0.
if (ipq9=1) kbrawler1=1.
if (ipq9=3) kbrawler1=-1.
if (ipq10=1) kbrawler2=1.
if (ipq10=3) kbrawler2=-1.
compute kbrawler=(kbrawler1+kbrawler2)/2.
compute dbrawler1=0.
compute dbrawler2=0.
if (ipq7=1) dbrawler1=1.
if (ipq7=3) dbrawler1=-1.
if (ipq8=1) dbrawler2=1.
if (ipq8=3) dbrawler2=-1.
compute dbrawler=(dbrawler1+dbrawler2)/2.
compute knonbrawler1=0.
compute knonbrawler2=0.
if (ipq11_a=1) knonbrawler1=1.
if (ipq11_a=3) knonbrawler1=-1.
if (ipq11_b=1) knonbrawler2=1.
if (ipq11_b=3) knonbrawler2=-1.
compute knonbrawler=knonbrawler1+knonbrawler2.
compute dnonbrawler1=0.
compute dnonbrawler2=0.
if (ipq12_a=1) dnonbrawler1=1.
if (ipq12_a=3) dnonbrawler1=-1.
if (ipq12_b=1) dnonbrawler2=1.
if (ipq12_b=3) dnonbrawler2=-1.
compute dnonbrawler=dnonbrawler1+dnonbrawler2.
formats kbrawler dbrawler knonbrawler dnonbrawler (f6.2).
EXAMINE VARIABLES=kbrawler dbrawler BY partisan  /PLOT NONE  /STATISTICS descriptive  /CINTERVAL 95.


*main text, Figure 2, panel 1.
*use data set brawl 2017 panel. 
compute allwaves=1.
if (req1=999 or ipq1=9999) allwaves=0.
USE ALL.
COMPUTE filter_$=(allwaves=1).
FILTER BY filter_$.
EXECUTE.
MEANS TABLES=Q6 reQ15_Q6 IPQ20_Q6 by partisan  /CELLS=MEAN.

*main text, t-tests cited in footnote 10..
*use data set brawl 2017 panel. 
compute part1=0.
if (partisan=1) part1=1.
compute q6_w32=IPQ20_Q6-reQ15_Q6.
compute q6_w21=reQ15_Q6-q6.
T-TEST GROUPS=part1(0 1)  /VARIABLES= q6_w21 q6_w32.

*main text, Figure 2, panel 2.
*use data set brawl 2017 panel. 
MEANS TABLES=Q22 	reQ31_Q22	IPQ33_Q22  BY partisan  /CELLS=MEAN.

*main text, t-tests.cited in footnotes 11 and 12.
*use data set brawl 2017 panel. 
compute q22_w32=IPQ33_Q22-reQ31_Q22.
compute q22_w21=reQ31_Q22-Q22.
T-TEST GROUPS=part1(0 1)  /VARIABLES= Q22_w21 Q22_w32.

*main text, figure 3.
*use data set brawl 2017 panel. 
CROSSTABS  /TABLES=partisan BY reQ3 ipQ4  /CELLS=ROW .

*main text, figure 4: see r syntax.

*******tables and figures in the online appendix.

**online appendix 1.
*tables A1.2 and A1.3.
*results for 2015 internet survey.
*use data set brawl 2015.

compute region=arear. 
recode region (1 2 3 9=1) (4=2) (5 6=3) (7=4).
value labels region 1 "north" 2 "central" 3 "south" 4 "east".
freq sex age edu career8 sengi region partyid  t_cid tondu.

*results for the 2016 telephone survey.
*use data set brawl 2016.

weight by w.
compute region=arear. 
recode region (1 2 3 9=1) (4=2) (5 6=3) (7=4).
value labels region 1 "north" 2 "central" 3 "south" 4 "east".
freq sex age edu career8 sengi region partyid2  t_cidentity tondu.

*results from 2017 three wave panel internet survey.
*use data set brawl 2017 panel. 

USE ALL.
compute region=arear. 
recode region (1 2 3 9=1) (4=2) (5 6=3) (7=4).
value labels region 1 "north" 2 "central" 3 "south" 4 "east".
freq sex agegroup edu career8 sengi region q25  t_cidentity tondu.
USE ALL.
COMPUTE filter_$=(req1 ne 999).
FILTER BY filter_$.
EXECUTE.
freq sex agegroup edu career8 sengi region req34_q25  t_cidentity tondu.
USE ALL.
COMPUTE filter_$=(ipq1 ne 9999).
FILTER BY filter_$.
EXECUTE.
freq sex agegroup edu career8 sengi region ipq36_q25  t_cidentity tondu.
USE ALL.
COMPUTE filter_$=(allwaves=1).
FILTER BY filter_$.
EXECUTE.
freq sex agegroup edu career8 sengi region q25  t_cidentity tondu.


***online appendix 2.
*results from 2016 telephone survey for tables A2.1, A2.2, and A2.5.
*use data set brawl 2016.
weight by w.
freq q17 q18 q20.
*results from 2017 survey Wave One for tables A2.1, A2.2, and A2.5.
*use data set brawl 2017 panel. 
USE ALL.
freq q16 q17 q19.
*results from 2017 survey Wave Two for tables A2.1, A2.2, and A2.5.
*use data set brawl 2017 panel. 
USE ALL.
COMPUTE filter_$=(req1 ne 999).
FILTER BY filter_$.
EXECUTE.
freq req25_q16 req26_q17 req28_q19.
*results from 2017 survey Wave Three for tables A2.1, A2.2, and A2.5.
*use data set brawl 2017 panel. 
USE ALL.
COMPUTE filter_$=(ipq1 ne 9999).
FILTER BY filter_$.
EXECUTE.
freq ipq28_q17 ipq29_q18 ipq30_q19.

*table A2.3.
*use data set brawl 2015.
freq q_7_1 q_7_2 q_7_3 q_7_4 q_7_5 q_7_6 q_7_7 q_7_8 q_7_9 q_7_10 
      q_7_11 q_7_12 q_7_13 q_7_14 nq7_evaluation.
freq q_7a nq7a_evaluation.

*table A2.4.
*use data set brawl 2017 panel. 
USE ALL.
COMPUTE filter_$=(req1 ne 999).
FILTER BY filter_$.
EXECUTE.
freq reQ29_1_Q20_1 reQ29_2_Q20_2 reQ29_3_Q20_3 reQ29_4_Q20_4 reQ29_5_Q20_5 reQ29_6_Q20_6 reQ29_7_Q20_7
       reQ29_8_Q20_8 reQ29_9_Q20_9 reQ29_10_Q20_10 reQ29_11_Q20_11 reQ29_12_Q20_12 reQ29_13_Q20_13 reQ29_14_Q20_14.
freq reQ30_Q21.

****online appendix 3.
*table A3.1.
*use data set brawl 2017 panel. 
use all. 
CROSSTABS  /TABLES=Q25 BY partisan  /CELLS=COUNT ROW .

*table A3.2.
*use data set brawl 2017 panel. 
compute partisan3=0. 
if (q27-q28 ge 1) partisan3=2.
if (q27-q28 ge 3) partisan3=1.
if (q27=q28) partisan3=3.
if (q28-q27 ge 1) partisan3=4.
if (q28-q27 ge 3) partisan3=5.
value labels partisan3 1 "KMT much better" 2 "KMT slightly better" 
    3 "KMT and DPP equal" 4 "DPP slightly better" 5 "DPP much better".
compute partisan5=0. 
if (q27-q28 ge 1) partisan5=2.
if (q27-q28 ge 5) partisan5=1.
if (q27=q28) partisan5=3.
if (q28-q27 ge 1) partisan5=4.
if (q28-q27 ge 5) partisan5=5.
value labels partisan5 1 "KMT much better" 2 "KMT slightly better" 
    3 "KMT and DPP equal" 4 "DPP slightly better" 5 "DPP much better".
USE ALL.
COMPUTE filter_$=(allwaves=1).
FILTER BY filter_$.
EXECUTE.
freq partisan3 partisan partisan5.
compute extremek3=0.
if (partisan3=1) extremek3=1.
compute extremek4=0.
if (partisan=1) extremek4=1.
compute extremek5=0.
if (partisan5=1) extremek5=1.
compute q6_w21=reQ15_Q6-q6.
T-TEST GROUPS=extremek3(0 1)  /VARIABLES= q6_w21.
T-TEST GROUPS=extremek4(0 1)  /VARIABLES= q6_w21.
T-TEST GROUPS=extremek5(0 1)  /VARIABLES= q6_w21.
compute q6_w32=IPQ20_Q6-reQ15_Q6.
T-TEST GROUPS=extremek3(0 1)  /VARIABLES= q6_w32.
T-TEST GROUPS=extremek4(0 1)  /VARIABLES= q6_w32.
T-TEST GROUPS=extremek5(0 1)  /VARIABLES= q6_w32.
compute Q22_w21=reQ31_Q22-Q22.
T-TEST GROUPS=extremek3(0 1)  /VARIABLES= q22_w21.
T-TEST GROUPS=extremek4(0 1)  /VARIABLES= q22_w21.
T-TEST GROUPS=extremek5(0 1)  /VARIABLES= q22_w21.
compute Q22_w32=IPQ33_Q22-reQ31_Q22.
T-TEST GROUPS=extremek3(0 1)  /VARIABLES= q22_w32.
T-TEST GROUPS=extremek4(0 1)  /VARIABLES= q22_w32.
T-TEST GROUPS=extremek5(0 1)  /VARIABLES= q22_w32.

*table A3.3.
*use data set brawl 2017 panel.  
USE ALL.
COMPUTE filter_$=(allwaves=1).
FILTER BY filter_$.
EXECUTE.
CROSSTABS  /TABLES=Q27 BY Q28 /CELLS=COUNT .

****online appendix 4.
*use data set brawl 2017 panel. 

USE ALL.
COMPUTE filter_$=(ipq1 ne 9999).
FILTER BY filter_$.
EXECUTE.
missing values ipq11_a ipq11_b ipq12_a ipq12_b (9999).
compute kb1=kbrawler1.
compute kb2=kbrawler2.
compute knb1=knonbrawler1.
compute knb2=knonbrawler2.
if (ipq11_a = 99) knb1=99.
if (ipq11_b = 99) knb2=99.
compute db1=dbrawler1.
compute db2=dbrawler2.
compute dnb1=dnonbrawler1.
compute dnb2=dnonbrawler2.
if (ipq12_a = 99) dnb1=99.
if (ipq12_b = 99) dnb2=99.
missing values knb1 knb2 dnb1 dnb2 (99).
formats kb1 kb2 knb1 knb2 db1 db2 dnb1 dnb2 (f6.4).
*figure A4.1.
EXAMINE VARIABLES=kb1 BY partisan  /PLOT NONE  /STATISTICS descriptive  /CINTERVAL 95.
EXAMINE VARIABLES=kb2 BY partisan  /PLOT NONE  /STATISTICS descriptive  /CINTERVAL 95.
*figure A4.2.
EXAMINE VARIABLES=knb1 BY partisan  /PLOT NONE  /STATISTICS descriptive  /CINTERVAL 95.
EXAMINE VARIABLES=knb2 BY partisan  /PLOT NONE  /STATISTICS descriptive  /CINTERVAL 95.
*figure A4.3.
EXAMINE VARIABLES=db1 BY partisan  /PLOT NONE  /STATISTICS descriptive  /CINTERVAL 95.
EXAMINE VARIABLES=db2 BY partisan  /PLOT NONE  /STATISTICS descriptive  /CINTERVAL 95.
*figure A4.4.
EXAMINE VARIABLES=dnb1 BY partisan  /PLOT NONE  /STATISTICS descriptive  /CINTERVAL 95.
EXAMINE VARIABLES=dnb2 BY partisan  /PLOT NONE  /STATISTICS descriptive  /CINTERVAL 95.

****online appendix 5 results are produced using STATA syntax (syntax for appendix 5).





